<script setup>
import { ref } from 'vue'

const show = ref(false)
</script>
<template>
    <div class="mes-box">
        <header>
            <p @click="$router.back()">&lt;</p>
            <span>消息设置</span>
            <p></p>
        </header>
        <main>
            <p>互动消息</p>
            <div>
                <b style="position: relative;">回复我的</b>
                <p>所有人 &gt;</p>
                <span>评论/回复/回答等</span>
            </div>
            <div>
                <b>@我</b>
                <p>所有人 &gt;</p>
            </div>
            <div>
                <b>点赞</b>
                <p>不接收此类消息 &gt;</p>
            </div>
            <div>
                <b>新增粉丝</b>
                <p>我关注的人 &gt;</p>
            </div>

            <p>私信消息</p>
            <div>
                <b>接收陌生人的私信</b>
                <van-switch v-model="show" />
            </div>
        </main>
    </div>
</template>
<style lang="scss" scoped>
main>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 0.7rem;
    padding: 0 0.16rem;
    background-color: #fff;

    b {
        font-weight: normal;
        font-size: 0.18rem;
    }

    p {
        font-size: 0.14rem;
        color: gray;
    }

    span {
        position: absolute;
        top: 1.2rem;
        left: 0.16rem;
        font-size: 0.12rem;
        color: gray;
    }
}

main>p {
    background-color: #f7f7f7;
    line-height: 0.36rem;
    font-size: 0.14rem;
    color: gray;
    padding-left: 0.16rem;
}

main {
    flex: 1;
    height: 100%;
    background-color: #f7f7f7;
}

.mes-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    // padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-size: 0.16rem;
    // margin: 0.2rem 0;

}

header {
    font-size: 0.20rem;
    text-align: center;
    // margin: 0.2rem 0;
    display: flex;
    justify-content: space-between;
    padding: 0.1rem;
    box-sizing: border-box;
    height: 0.6rem;

    span {
        user-select: none;
    }

}
</style>